﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _2112A_2_MES._wangweihao
{
    /// <summary>
    /// 工艺组成
    /// </summary>
    public class ProRouteProcess : Entity<int>
    {

        /// <summary>
        /// 工艺路线ID
        /// </summary>
        public int? RouteId { get; set; }

        /// <summary>
        /// 工序ID
        /// </summary>
        public int? ProcessId { get; set; }

        /// <summary>
        /// 工序编号
        /// </summary>
        [StringLength(64)]
        public string? ProcessCode { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        [StringLength(255)]
        public string? ProcessName { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public int? OrderNum { get; set; }

        /// <summary>
        /// 下一道工序ID
        /// </summary>
        public int? NextProcessId { get; set; }

        /// <summary>
        /// 下一道工序编号
        /// </summary>
        [StringLength(64)]
        public string? NextProcessCode { get; set; }

        /// <summary>
        /// 下一道工序名称
        /// </summary>
        [StringLength(255)]
        public string? NextProcessName { get; set; }

        /// <summary>
        /// 与下一道工序连接类型
        /// </summary>
        [StringLength(64)]
        public string? LinkType { get; set; }

        /// <summary>
        /// 准备时间
        /// </summary>
        public int? DefaultPreTime { get; set; }

        /// <summary>
        /// 执行时间
        /// </summary>
        public int? DefaultSufTime { get; set; }

        /// <summary>
        /// 过渡图颜色
        /// </summary>
        [StringLength(7)]
        public string? ColorCode { get; set; }

        /// <summary>
        /// 关键工序
        /// </summary>
        [StringLength(64)]
        public string? KeyFlag { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string? Remark { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(64)]
        public string? CreatedBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        [StringLength(64)]
        public string? UpdatedBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
